#include <57header.h>

void *func(void *p){

    sleep(20);

    return NULL;
}
int main(int argc,char*argv[])
{
    pthread_t son_id;
    pthread_create(&son_id, NULL, func, NULL);


    printf("before join \n");
    // pthread_join:等待当前进程中的另外一个线程退出
    pthread_join(son_id, NULL);
    printf("after join \n");

    return 0;
}

